package com.example.fanday.play.di.component;

import android.app.Fragment;
import android.content.Context;

import com.example.fanday.play.cons.Dagger2Cons;
import com.example.fanday.play.di.module.FragmentModule;
import com.example.fanday.play.di.scope.ContextLife;
import com.example.fanday.play.di.scope.PerApp;
import com.example.fanday.play.di.scope.PerFragment;

import dagger.Component;

/**
 * Created by fanday on 2017/8/13.
 */
@PerFragment
@Component(modules = FragmentModule.class,dependencies = ApplicationComponent.class)
public interface FragmentComponent {
    @ContextLife(Dagger2Cons.APPLICATION)
    Context getApplicationContext();
    @ContextLife(Dagger2Cons.FRAGMENT)
    Context getFragmentContext();

    Fragment getFragment();
}
